package nc.vo.ph.pub;

 
import nc.vo.pub.CircularlyAccessibleValueObject;
import nc.vo.pub.ExtendedAggregatedValueObject;
import nc.vo.so.soreceive.SaleReceiveBVO;
import nc.vo.so.soreceive.SaleReceiveHVO;

public class SaleReceivePrintVO extends ExtendedAggregatedValueObject {
	private SaleReceiveGroupVO[] sbvo_left = null;
	private SaleReceiveGroupVO[] sbvo_right = null;
	private SaleReceiveGroupVO[] sbgvo = null; 
	private SaleReceiveHVO hvo = null;
	@Override
	public CircularlyAccessibleValueObject getParentVO() {
		return hvo;
	}

	@Override
	public String[] getTableCodes() {
		return new String[]{"so_salereceive_b_left","so_salereceive_b_right",
							"so_salereceive_b_group"};
	}

	@Override
	public String[] getTableNames() {
		return new String[]{SaleReceiveGroupVO.class.getName(),SaleReceiveGroupVO.class.getName(),SaleReceiveGroupVO.class.getName()};
	}

	@Override
	public CircularlyAccessibleValueObject[] getTableVO(String tableCode) {
		if(tableCode.equals("so_salereceive_b_left")){
			return sbvo_left;
		}else if(tableCode.equals("so_salereceive_b_group")){
			return sbgvo;
		} else if(tableCode.equals("so_salereceive_b_right")){
			return sbvo_right;
		}
		return null;
	}

	@Override
	public void setParentVO(CircularlyAccessibleValueObject parent) {
		hvo = (SaleReceiveHVO) parent;

	}

	@Override
	public void setTableVO(String tableCode,
			CircularlyAccessibleValueObject[] values) {
		if(tableCode.equals("so_salereceive_b_left")){
			sbvo_left = (SaleReceiveGroupVO[]) values;
		}else if(tableCode.equals("so_salereceive_b_group")){
			sbgvo = (SaleReceiveGroupVO[]) values;
		}else if(tableCode.equals("so_salereceive_b_right")){
			sbvo_right = (SaleReceiveGroupVO[]) values;
		}

	}

}
